<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>网站设置</title>
        <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
        <link rel="stylesheet" href="__PUBLIC__/css/nav.css"> 
        <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>    
        <script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>

    </head>
    <body>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td height="31"><div class="titlebt">网站设置</div></td>
            </tr>
        </table>
        <table class="table panel-info bshadow" >
            <thead>
                <tr class="success">
                    <th>序号</th>
                    <th>标题</th>
                    <th>值</th>
                    <th>注解</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
                <tr>
                    <td>{$i}</td>
                    <td>{$vo.headline}</td>
                    <td>{$vo.value}</td>
                    <td>{$vo.explain}</td>
                    <td><a  data-toggle="modal" data-target="#myModal" onclick="$('#key1').val('{$vo.key}')">修改</a></td>
                </tr>
            </volist>
        </tbody>
    </table>
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        修改
                    </h4>
                </div>
                <form action="{:U('Admin/Index/updateSet')}" method="post">
                    <div class="modal-body">
                        <input name="value" type="text">
                        <input name="key" id="key1" type="hidden">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                        </button>
                        <button type="submit" class="btn btn-primary">
                            提交更改
                        </button>
                    </div>
                </form>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</body>
</html>